Skip to content

Conversation

oliveror
Copy link
Member

Changes

  • Removed the unused search/setSearch fields from the Zustand store and the unused data/users.ts mock user. The store now has a short comment explaining what is global state and what lives in the URL / query cache.
  • The UI showcase, RecipeCard showcase, style guide and style stress tests (~9 000 lines) were no longer reachable. Instead of deleting the team's review tool, they are mounted at /project2/dev/* only in npm run dev (src/dev/, behind import.meta.env.DEV). The production bundle is unchanged in size and contains none of this code (verified by searching the build output).
  • components/ui/README.md and SKILL.md describe the new routes.

Validation

Remaining work

  • None for this issue.

AI usage

Written with Claude Code (Anthropic) during the final-delivery review. The change was implemented and tested by the AI agent and pushed from my account. Please review the diff as you would any other contribution.

Closes #79

- Remove the unused search/setSearch store fields and the unused
  data/users.ts mock user.
- The UI showcase, RecipeCard showcase, style guide and style stress tests
  were no longer reachable from App. Mount them at /dev/* behind
  import.meta.env.DEV, so they are usable in npm run dev and excluded from
  the production bundle, and document the routes in the UI README.

Closes #79
@oliveror oliveror requested a review from a team as a code owner November 16, 2026 13:50
Copy link
Member

@olestan olestan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. Two minor follow-up comments:

  • DevPages.tsx:60–65 — Missing 404 fallback: Unknown /dev/* routes render a blank page instead of NotFoundPage. Consider adding a nested path="*" fallback to preserve existing routing behavior.
  • DevPages.tsx:23–38 — Duplicate main landmarks: The UI showcase and style tests render multiple <main> elements on the same page, causing accessibility issues. Consider using one <main> per page and <section> for individual showcases.

Review on #92: the showcases and style tests each rendered their own
<main>, so pages had several main landmarks; they now use <section>, and
DevPages wraps each page in a single <main>. Unknown /dev/* routes show
NotFoundPage instead of a blank page.

Refs #79
@oliveror
Copy link
Member Author

Thanks for the approval. Both follow-ups are done in the latest commit:

  • 404 fallback: /dev/* now has a path="*" route that renders NotFoundPage (checked: /dev/nope shows "Page not found").
  • Duplicate main landmarks: every showcase and style-test component now uses <section> instead of <main>, and DevPages wraps each page in exactly one <main> (checked in the dev server: one main on /dev/, /dev/ui, /dev/recipe-card, /dev/styles and /dev/style-tests, no page errors).

The production build still contains none of the dev pages.

@oliveror oliveror merged commit 84df0f6 into dev Nov 16, 2026
2 checks passed
@oliveror oliveror deleted the chore/web-remove-dead-code branch November 17, 2026 00:30
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants